
@REM -----------------------------------------------------------------------------------------------------------


@REM curl "http://localhost:5294/api/Auths/login" ^
@REM   -H "Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6" ^
@REM   -H "Connection: keep-alive" ^
@REM   -H "Content-Type: application/json-patch+json" ^
@REM   -H ^"Cookie: authorized-token=^{^%^22accessToken^%^22:^%^22eyJhbGciOiJIUzUxMiJ9.admin^%^22^%^2C^%^22expires^%^22:1919520000000^%^2C^%^22refreshToken^%^22:^%^22eyJhbGciOiJIUzUxMiJ9.adminRefresh^%^22^}; multiple-tabs=true; .AspNetCore.Antiforgery.s4870XLI5gU=CfDJ8Axlvo0Ayg1JuTT9Rad2NjbWiNeFXrOQ3p46CBdIPwXxhO5mWgxcRkIJiLn28rVCgNYTqlWHKPDGhkppyXI9a2zJmIT40_tNOnUrDdnAFug48IfZfpeSIp7onWOItGu2AO90pK34CAhXjPEdXJd20VE^" ^
@REM   -H "Origin: http://localhost:5294" ^
@REM   -H "Referer: http://localhost:5294/swagger/index.html" ^
@REM   -H "Sec-Fetch-Dest: empty" ^
@REM   -H "Sec-Fetch-Mode: cors" ^
@REM   -H "Sec-Fetch-Site: same-origin" ^
@REM   -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0" ^
@REM   -H "accept: */*" ^
@REM   -H ^"sec-ch-ua: ^\^"Not/A)Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"126^\^", ^\^"Microsoft Edge^\^";v=^\^"126^\^"^" ^
@REM   -H "sec-ch-ua-mobile: ?0" ^
@REM   -H ^"sec-ch-ua-platform: ^\^"Windows^\^"^" ^
@REM   --data-raw ^"^{^
@REM   ^\^"userName^\^": ^\^"admin^\^",^
@REM   ^\^"password^\^": ^\^"Abc123^@^\^"^
@REM ^}^"


@REM -----------------------------------------------------------------------------------------------------------
@REM post请求，读取外本json，普通登录
@REM curl -X POST http://localhost:5121/api/Auths/login -H "Content-Type: application/json" -d @login.json





@REM -----------------------------------------------------------------------------------------------------------
@REM ldap登录
@REM curl -X POST https://localhost:7244/api/Auths/login/ldap -H "Content-Type: application/json" -d @loginldap.json




@REM -----------------------------------------------------------------------------------------------------------
@REM post请求，读取外本json，普通登录
@REM curl -s -X POST https://localhost:7244/api/Auths/login -H "Content-Type: application/json" -d @dddlogin.json





@REM -----------------------------------------------------------------------------------------------------------
@REM curl "http://localhost:5121/api/Accounts" ^
@REM   -H "Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6" ^
@REM   -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiY2ltYWRtaW4iLCJleHAiOjE3MjM5NzExODQsImlzcyI6Ikxvbmdmb3JjZSIsImF1ZCI6IkdpZ2FEZXZpY2UifQ.oUT3gZVo92drwXQZOFs1eaVqdCRwlN4BJHJ9qsppod0" ^
@REM   -H "Connection: keep-alive" ^
@REM   -H ^"Cookie: authorized-token=^{^%^22accessToken^%^22:^%^22eyJhbGciOiJIUzUxMiJ9.admin^%^22^%^2C^%^22expires^%^22:1919520000000^%^2C^%^22refreshToken^%^22:^%^22eyJhbGciOiJIUzUxMiJ9.adminRefresh^%^22^}; multiple-tabs=true; .AspNetCore.Antiforgery.s4870XLI5gU=CfDJ8Axlvo0Ayg1JuTT9Rad2NjbWiNeFXrOQ3p46CBdIPwXxhO5mWgxcRkIJiLn28rVCgNYTqlWHKPDGhkppyXI9a2zJmIT40_tNOnUrDdnAFug48IfZfpeSIp7onWOItGu2AO90pK34CAhXjPEdXJd20VE; .AspNetCore.Identity.Application=CfDJ8Axlvo0Ayg1JuTT9Rad2NjbEzeah-u9d3G8CION5NonTDX5tSZ2wPUO0oDGhdCiKC2SH4WooB4h8ZX4jdEcQ00YvjAYS342dBAtJ3i_IAqKQYb2B2I9t3VrziWAcCc3w-C8546aW3dLwQavAFD3wDmw5klnOdlYrkSr8AIfSowkvpM-SdpAZfkx3NTcsmok1up4CTIflUUNRmsGyPrAbMotd4rb_7IJy0KOp8R32OOeIS8jNS-r3N4QheJrNPLn4kjD_BsN5bEJAm3NpHqU3qE6mXVWx_MNt8HJMyQo6n9hNJe4p6HE38N4oyoykz9nSXQcG6CVXhF3Xqo6wwlhq99IDTlT0Q_ecFnexBgCyWQk7sCiqVNEO1B3I1rABr9gcB5pPxn_95DQHT6r6-huo6ir4_D6YrjBPACecIg-dbHRAH7XgR15nP32hP5BXDtOG3JtmZocDeQbK_vH0DQe_KVgSSKdIALS-cwlPUzvYXS4iZQyoVsqwftjx_CWXBt45txIELAfZpdduX6P1DYTN-2Vf5MJ6CYhgb9vheIcQwn5Zlmz8KahUm2h3M8SiS7FLZMfdQ-l7dTwDuJvz8oO0f2OSHmnGm1MU8o3mBwsNW6K4iv6ED4keJs--YZ8bq-Kj6g^" ^
@REM   -H "Referer: http://localhost:5121/swagger/index.html" ^
@REM   -H "Sec-Fetch-Dest: empty" ^
@REM   -H "Sec-Fetch-Mode: cors" ^
@REM   -H "Sec-Fetch-Site: same-origin" ^
@REM   -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0" ^
@REM   -H "accept: */*" ^
@REM   -H ^"sec-ch-ua: ^\^"Not/A)Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"126^\^", ^\^"Microsoft Edge^\^";v=^\^"126^\^"^" ^
@REM   -H "sec-ch-ua-mobile: ?0" ^
@REM   -H ^"sec-ch-ua-platform: ^\^"Windows^\^"^"



@REM -----------------------------------------------------------------------------------------------------------
@REM curl -s -X GET http://localhost:5121/api/Accounts  ^
@REM     -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiY2ltYWRtaW4iLCJleHAiOjE3MjM5NzExODQsImlzcyI6Ikxvbmdmb3JjZSIsImF1ZCI6IkdpZ2FEZXZpY2UifQ.oUT3gZVo92drwXQZOFs1eaVqdCRwlN4BJHJ9qsppod0"



@REM curl -s -X GET http://localhost:5121/api/Accounts  ^
@REM     -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiWjA1NzM1IiwiZXhwIjoxNzIzOTcxOTgxLCJpc3MiOiJMb25nZm9yY2UiLCJhdWQiOiJHaWdhRGV2aWNlIn0.bh03h4c3ovGJbFV1d3LXF0uInQmMKTTOCZXF8_98HKA"



@REM -----------------------------------------------------------------------------------------------------------
@REM post请求，读取外本json，普通登录
@REM curl  -X POST http://localhost:5294/api/Auths/login -H "Content-Type: application/json" -d @dddlogin.json










@REM --------------------------------
@REM 获取个人信息
@REM curl -s -X GET http://localhost:5294/api/Accounts  ^
@REM     -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYWRtaW4iLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJhM2Q3NTQ4Mi1jYmQ2LTRkYTMtOTk1Zi1jZGE4YmI4YTI5ZDkiLCJleHAiOjE3MjM4MTA3ODgsImlzcyI6IkVsZXRyaWNBUEkiLCJhdWQiOiJFbGV0cmljQVBJIn0.8KGrsXKOakZ7QSqpeeRqcs-qXkfLDcfafsd0ao5g6Eo"





@REM --------------------------------
@REM curl -X POST http://localhost:5294/api/Todos   ^
@REM   -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYWRtaW4iLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiI0ZGQyNmYxOC1kNzUwLTQ4NDYtYmEzYi1jOGI0M2EyNWQxMGUiLCJleHAiOjE3MjM5NTkxNzgsImlzcyI6IkVsZXRyaWNBUEkiLCJhdWQiOiJFbGV0cmljQVBJIn0.SOx8HqbEsV73DWz-4L__BZ4hmMY20YQ7sUEpO9KI-i8"  ^
@REM   -H "Content-Type: application/json-patch+json"  ^
@REM   -d @createtodo2.json




@REM curl -X GET http://localhost:5294/api/Users?UserName=admin ^
@REM     -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYWRtaW4iLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiI0ZGQyNmYxOC1kNzUwLTQ4NDYtYmEzYi1jOGI0M2EyNWQxMGUiLCJleHAiOjE3MjM5NTkxNzgsImlzcyI6IkVsZXRyaWNBUEkiLCJhdWQiOiJFbGV0cmljQVBJIn0.SOx8HqbEsV73DWz-4L__BZ4hmMY20YQ7sUEpO9KI-i8"  


@REM curl -X GET http://localhost:5294/api/Todos?PrePage=10 ^
@REM     -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYWRtaW4iLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiI0ZGQyNmYxOC1kNzUwLTQ4NDYtYmEzYi1jOGI0M2EyNWQxMGUiLCJleHAiOjE3MjM5NTkxNzgsImlzcyI6IkVsZXRyaWNBUEkiLCJhdWQiOiJFbGV0cmljQVBJIn0.SOx8HqbEsV73DWz-4L__BZ4hmMY20YQ7sUEpO9KI-i8"  



@REM 4dd26f18-d750-4846-ba3b-c8b43a25d10e
@REM curl -X GET http://localhost:5294/api/Todos/e3dcc7ab-47d4-4b9a-49a9-08dcbe9384d6 ^
@REM     -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYWRtaW4iLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiI0ZGQyNmYxOC1kNzUwLTQ4NDYtYmEzYi1jOGI0M2EyNWQxMGUiLCJleHAiOjE3MjM5NTkxNzgsImlzcyI6IkVsZXRyaWNBUEkiLCJhdWQiOiJFbGV0cmljQVBJIn0.SOx8HqbEsV73DWz-4L__BZ4hmMY20YQ7sUEpO9KI-i8"  






@REM 
@REM curl -X GET http://localhost:5294/api/Todos/67493325-6e99-4d06-fd9f-08dcbe7e2036 ^
@REM     -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYWRtaW4iLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiI0ZGQyNmYxOC1kNzUwLTQ4NDYtYmEzYi1jOGI0M2EyNWQxMGUiLCJleHAiOjE3MjM5NTkxNzgsImlzcyI6IkVsZXRyaWNBUEkiLCJhdWQiOiJFbGV0cmljQVBJIn0.SOx8HqbEsV73DWz-4L__BZ4hmMY20YQ7sUEpO9KI-i8"  


@REM curl -X GET http://localhost:5294/api/Todos/67493325-6e99-4d06-fd9f-08dcbe7e2036 ^
@REM     -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYWRtaW4iLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiI0ZGQyNmYxOC1kNzUwLTQ4NDYtYmEzYi1jOGI0M2EyNWQxMGUiLCJleHAiOjE3MjM5NTkxNzgsImlzcyI6IkVsZXRyaWNBUEkiLCJhdWQiOiJFbGV0cmljQVBJIn0.SOx8HqbEsV73DWz-4L__BZ4hmMY20YQ7sUEpO9KI-i8"  



@REM curl -X PUT http://localhost:5294/api/Todos/67493325-6e99-4d06-fd9f-08dcbe7e2036 ^
@REM     -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYWRtaW4iLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiI0ZGQyNmYxOC1kNzUwLTQ4NDYtYmEzYi1jOGI0M2EyNWQxMGUiLCJleHAiOjE3MjM5NTkxNzgsImlzcyI6IkVsZXRyaWNBUEkiLCJhdWQiOiJFbGV0cmljQVBJIn0.SOx8HqbEsV73DWz-4L__BZ4hmMY20YQ7sUEpO9KI-i8"  
@REM     -d @updatetodo.json

















@REM curl -X 'PUT' \
@REM   'http://localhost:5294/api/Todos/67493325-6e99-4d06-fd9f-08dcbe7e2036' \
@REM   -H 'accept: */*' \
@REM   -H 'Content-Type: application/json-patch+json' \
@REM   -d '{
@REM   "name": "eat",
@REM   "status": 0,
@REM   "remark": "eat 10 apple"
@REM }
@REM '



@REM curl -X PUT http://localhost:5294/api/Todos/67493325-6e99-4d06-fd9f-08dcbe7e2036 ^
@REM   -H "Content-Type: application/json-patch+json" ^
@REM   -d @updatetodo.json




curl -X GET http://localhost:5294/api/Todos/67493325-6e99-4d06-fd9f-08dcbe7e2036 ^
    -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYWRtaW4iLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiI0ZGQyNmYxOC1kNzUwLTQ4NDYtYmEzYi1jOGI0M2EyNWQxMGUiLCJleHAiOjE3MjM5NTkxNzgsImlzcyI6IkVsZXRyaWNBUEkiLCJhdWQiOiJFbGV0cmljQVBJIn0.SOx8HqbEsV73DWz-4L__BZ4hmMY20YQ7sUEpO9KI-i8"  







  
